Skip to content

Comments

feat: Add new API notebook#18

Open
InertGas01 wants to merge 1 commit intoandy89923:stu/113from
InertGas01:stu/113
Open

feat: Add new API notebook#18
InertGas01 wants to merge 1 commit intoandy89923:stu/113from
InertGas01:stu/113

Conversation

@InertGas01
Copy link

> curl -X GET http://127.0.0.163:8000/notebook/User_Guide
Shows the content of note "User_Guide".
"/<Title>/ Show the content of the note with title <Title>."

> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/Content
If note "new_note_title" doesn't exist, create it with content "Content".
Otherwise, change the content of note "new_note_title" from "content" to "Content".

> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/can't
> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/contain
> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/whitespaces.
Append " can't", " contain", " whitespaces." respectively to the content of note "new_note_title".

> curl -X GET http://127.0.0.163:8000/notebook/new_note_title
Shows the content of note "new_note_title".
"Content can't contain whitespaces."

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write the test for your service.

}).AnyTimes()
server := sbi.NewServer(nfApp, "")

t.Run("No name provided", func(t *testing.T) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"No name provided" ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following test with same name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants